package de.dailab.graphworld.ontology;

public class GraphWorldException extends Exception {

	static final long serialVersionUID = 1450403242476376358L;
	public final Node node;

	public GraphWorldException(String msg, Node node) {
		super(msg);
		this.node = node;
	}

	public GraphWorldException(String msg, Node node, Throwable cause) {
		super(msg, cause);
		this.node = node;
	}

	public Node getPosition() {
		return node;
	}

	@Override
	public String toString() {
		return super.toString() + " at " + node.toString();
	}
	
}
